package com.sky.mapper;

import com.sky.entity.DishFlavor;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 查询菜品id对应套餐数量  select x from xx where id in (1,2,3,4)
     * @param dishIds
     * @return
     */
    List<Long> getSetMealDish(List<Long> dishIds);

    //批量增加套餐菜品
    void insertBatchSetMeals(List<SetmealDish> dishes);

    //根据id查询套餐具体菜品
    List<SetmealDish> queryById(long setMealId);

    //批量修改套餐菜品信息
    void updateDishInfoBatch(List<SetmealDish> dishList);

    //删除套餐菜品信息
    void deleteSetMealDish(long setMealId);

    void deleteDish(List<Long> ids);
}
